package com.wjy.rbac.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.wjy.rbac.entity.User;
import org.springframework.transaction.annotation.Isolation;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.util.Map;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author ybxxszl
 * @since 2019-04-12
 */
@Transactional(isolation = Isolation.READ_COMMITTED, propagation = Propagation.REQUIRED)
public interface IUserService extends IService<User> {

    void insert(User user);

    void update(User user);

    void delete(String userId);

    Map<String, Object> get(String userId);

    User getByAccount(String username);

}
